be better than doing or choosing…Placed after a phrase, 的 turns it into an option being compared; 好 says that option is better or preferable. Often appears in comparisons with 比 or 总比.
CH: 留下来等她,总比现在离开的好。
EN: It’s better to stay and wait for her than to leave now.